package day0714;


import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        //判断一个月有多少天
        //1.定义变量表示月份
        int month = new Scanner(System.in).nextInt();

        //2.
        if(month==1 |  month==3  ||  month==5  || month == 7|| month==8||month==12){//1 3 5 7 8 10  12
            System.out.println("本月有31天");
        }
        if(month==4 |  month==6  ||  month==9  || month == 11){// 4  6  9  11
            System.out.println("本月有30天");
        }


        if(month==2){// 4  6  9  11
            int year = new Scanner(System.in).nextInt();
            System.out.println(  year%400==0  ||(year%4==0&&  year%100!=0  )?  29  :28);
        }


    }
}
